package com.hairline.bean.vo;

import com.hairline.bean.OrderGoods;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class WxOrderListVo {
    String orderStatusText;
    boolean isGroupin;
    boolean mysta;
    String orderSn;
    BigDecimal actualPrice;
    List<WxOrderGoodsVo> goodsList;
    Integer id;
    WxOrderHandleOptionVO handleOption;

    public boolean getIsGroupin() {
        return isGroupin;
    }

    public void setGroupin(boolean groupin) {
        this.isGroupin = groupin;
    }

    public void setOrderStatusText(Short orderStatus) {
        if (orderStatus == 101) {
            this.orderStatusText = "未付款";
        } else if (orderStatus == 102) {
            this.orderStatusText = "用户取消";
        } else if (orderStatus == 103) {
            this.orderStatusText = "系统取消";
        } else if (orderStatus == 201) {
            this.orderStatusText = "已付款";
        } else if (orderStatus == 202) {
            this.orderStatusText = "申请退款";
        } else if (orderStatus == 203) {
            this.orderStatusText = "已退款";
        } else if (orderStatus == 301) {
            this.orderStatusText = "已发货";
        } else if (orderStatus == 401) {
            this.orderStatusText = "已收货";
        } else if (orderStatus == 402) {
            this.orderStatusText = "系统收货";
        }

    }


}
